<?php
/**
 * Date: 2021/8/5
 * Time: 11:11
 * 后台Toekn验证
 */
namespace App\Http\Middleware;
use App\Service\Verify;
use Closure;




class VerifyToken
{
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @return mixed
     */
    public function handle($request, Closure $next)
    {

            Verify::tokenVerify($request->header('token'));

            return $next($request);


    }
}
